GXPostScriptInitializePrinter
QuickDraw GX sends theGXPostScriptInitializePrinter
message when the printer needs to be initialized. You can override theGXPostScriptInitializePrinter
message to bring the printer to a known state after it has been restarted. Your override of theGXPostScriptInitializePrinter
message must match the following formal declaration:
OSErr MyPostScriptInitializePrinter (void);
- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
QuickDraw GX sends theGXPostScriptInitializePrinter
message when theGXPostScriptQueryPrinter
message returns an indicator that a device needs to be initialized. TheGXPostScriptQueryPrinter
downloads any code necessary to initialize the printer to a known state.The default implementation of this message downloads to the printer the latest version (version 7.0) of the LaserWriter PatchPrep procedure set, which defines a collection of PostScript operations that ensure compatibility between the LaserWriter driver and the printer. These operations then become "permanently" available on the printer, meaning that they are available until it is next restarted.
You can override this message if you want to modify the initialization process for the device. For example, you could modify the procedure set to add additional operations that are permanently available on the printer.
SPECIAL CONSIDERATIONS
Although you can totally override theGXPostScriptInitializePrinter
message, you almost always forward it. Your implementation downloads any commands that you want permanently installed.RESULT CODES
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing. SEE ALSO
TheGXPostScriptQueryPrinter
message is described on page 4-101.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help